package odgs.transaction;

import odgs.Directory;
import odgs.Transaction;

public class DirectoryRemoveTransaction extends Transaction
{
	private Directory dir;

	public DirectoryRemoveTransaction(long id)
	{
		super(id);
	}

	@Override
	public String getName()
	{
		return "DirectoryRemoveTransaction";
	}

	public void setDest(Directory dir)
	{
		this.dir = dir;
	}

	public Directory getDest()
	{
		return dir;
	}

	@Override
	public boolean isFileTrans()
	{
		return false;
	}
	
	@Override
	public String toString()
	{
		return "Directory Remove : " + dir.getName();
	}
}